package com.wzdigit.wms.basic.mapper.core.basic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.basic.WorkDivision;
import com.wzdigit.wms.basic.client.response.basic.UserWorkDivisionResponse;
import com.wzdigit.wms.basic.client.response.basic.WorkDivisionResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 工作分工 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-03-12
 */
@MyBatisRepository
public interface WorkDivisionMapper extends BaseMapper<WorkDivision> {

	List<WorkDivisionResponse> selectAll(
			@Param("workDivisionCode")String workDivisionCode, 
			@Param("workDivisionType")Integer workDivisionType,
			@Param("isEnabled")Integer isEnabled, @Param("filter")String filter);
	
	List<UserWorkDivisionResponse> selectPermByUserId(@Param("userId")Integer userId);
}
